using System;

namespace CalendarSubscriptionApp
{
    public sealed class AutodiscoverFailedEventArgs: EventArgs
    {
        private readonly Exception _Error;
        public string PrimaryEmailAddress { get; private set; }
        public Uri ExchangeWebServicesUrl { get; set; }

        public Exception Error { get; private set; }

        public AutodiscoverFailedEventArgs(string primaryEmailAddress, Exception error)
        {
            _Error = error;
            PrimaryEmailAddress = primaryEmailAddress;
            Error = error;
        }
    }
}